import '../../util/http.dart';
import 'package:flutter/material.dart';

class DeliverySearchApi{

    BuildContext? context;

    static DeliverySearchApi of(BuildContext? context){
      DeliverySearchApi deliverySearchApi = DeliverySearchApi();
      deliverySearchApi.context = context;
      return deliverySearchApi;
    }

    /// 查询配送单
    Future<dynamic> findDeliveryList(params) async{
      return await ApiService.of(context).post('lgs/delivery/findDeliveryList',params);
    }

    /// 获取agv列表
    Future<dynamic> getAgvList() async{
      return await ApiService.of(context).get('lgs/map/components/getAgvList');
    }

    /// 获取agv列表
    Future<dynamic> getTabFilters() async{
      return await ApiService.of(context).get('lgs/delivery/getTabFilters');
    }

}